import request from '@/utils/request'


// 生成id
export function genWorkerId() {
  return request({
    url: 'pay/pay/wxpay/genWorkerId',
    method: 'post',
  })
}
// 微信支付
export function unifiedOrder(orderId,totalFee,body) {
  return request({
    url: `pay/pay/wxpay/unifiedOrder/${orderId}/${totalFee}/${body}`,
    method: 'post',
  })
}


//查询订单状态
export function orderQuery(orderId) {
  return request({
    url: `pay/pay/wxpay/orderQuery/${orderId}`,
    method: 'post',
  })
}







// export function orderQuery(orderId) {
//   return request({
//     url: `wxpay/wxpay/wxpay/orderQuery/${orderId}`,
//     method: 'post',
//   })
// }


